// ActionScript file
import mx.rpc.events.ResultEvent;

	private function changedMainGuide():void{
		switch(cbx_MainGuide.selectedLabel){
			case "[상위 메뉴]":
				cbx_SubGuide.dataProvider = "";
				break;
			case "앱 도움말":
				cbx_SubGuide.dataProvider = HelpGuideArr;
				break;
			case "기본유형 설명":
				cbx_SubGuide.dataProvider = BtypeinfoGuideArr;
				break;
			case "경향화유형 설명":
				cbx_SubGuide.dataProvider = TtypeinfoGuideArr;
				break;
		}
		area_guide.text = "";
	}
	
	private function loadedGuideText(event:ResultEvent):void{
		var rawText:String = event.result.toString();
		area_guide.text = rawText.replace(/\r\n/g, "\r");
	}
	
	private function changedSubGuide():void{
		var labText:String = cbx_SubGuide.selectedLabel;
		if(labText=="[상위 메뉴]" || labText=="도움말" || labText=="기본유형" || labText=="경향화유형"){
			area_guide.text = "";
		}
		
		switch(cbx_SubGuide.selectedLabel){
			case "끼리끼리 사용법":
				reqGetGuideText.url = "text/UsageApp.txt";
				reqGetGuideText.send();
				break;
			case "BaseTheory 성격유형 검사":
				reqGetGuideText.url = "text/BasetheoryInfo.txt";
				reqGetGuideText.send();
				break;
			case "개인정보제공 동의 및 한계":
				reqGetGuideText.url = "text/AgreeInfomationProviding.txt";
				reqGetGuideText.send();
				break;
			
			case "1군:(SFM,NTV)":
				reqGetGuideText.url = "text/G1.txt";
				reqGetGuideText.send();
				break;
			case "2군:(STM,NFV)":
				reqGetGuideText.url = "text/G2.txt";
				reqGetGuideText.send();
				break;
			case "3군:(NFM,STV)":
				reqGetGuideText.url = "text/G3.txt";
				reqGetGuideText.send();
				break;
			case "4군:(NTM,SFV)":
				reqGetGuideText.url = "text/G4.txt";
				reqGetGuideText.send();
				break;
				
				
			case "사고화(STJ,NTJ)":
				reqGetGuideText.url = "text/TendenciatingToT.txt";
				reqGetGuideText.send();
				break;
			case "감정화(SFJ,NFJ)":
				reqGetGuideText.url = "text/TendenciatingToF.txt";
				reqGetGuideText.send();
				break;
			case "감각화(STP,SFP)":
				reqGetGuideText.url = "text/TendenciatingToS.txt";
				reqGetGuideText.send();
				break;
			case "직관화(NTP,NFP)":
				reqGetGuideText.url = "text/TendenciatingToN.txt";
				reqGetGuideText.send();
				break;
		}
	}
	
	